<?php if ($InputData["list_type"] == 1) { // 专题广场放搜索栏
    $searchDesc = '请输入搜索的专题';
    $searchContent = 'topic_list';
    $searchListType = 1;
    require("{$CfgPara->root}/view/search_bar_inview.app.v.php");
} ?>
<div id="home_topic_wrapper" style="touch-action: none">
    <div>
        <?php if (isset($topicList) && count($topicList) > 0) { ?>
            <div class="pull-action pull-down">
                <span class="am-icon-arrow-down pull-label">下拉刷新</span>
                <span class="am-icon-spinner am-icon-spin"></span>
            </div>
        <?php }
        if ($InputData["list_type"] != 2)
            require("{$CfgPara->root}/view/topic_list.app.v.php");
        else
            require("{$CfgPara->root}/view/topic_attention_list.app.v.php");
        if (isset($topicList) && count($topicList) > 0) {
            ?>
            <div class="pull-action pull-up">
                <span class="am-icon-arrow-up pull-label">上拉加载</span>
                <span class="am-icon-spinner am-icon-spin"></span>
            </div>
        <?php } ?>
    </div>
</div>
<script type="text/javascript">
    wrapper_height = $(window).height() - page_header_height - $("#list-sele-bar").outerHeight();
    // 新加的搜索栏高度
    bar_height = $('#search_bar_height').outerHeight();
    if (bar_height != undefined)
        wrapper_height -= bar_height;
    myScrollList = new ScrollLoad({
        params: {
            wrapper: '#home_topic_wrapper',
            start: 1,
            //工作区可见高度减去页头和选择栏
            screen_height: wrapper_height
        },
        post: {
            controller: 'topic_show_list',
            list_type: <?= $InputData['list_type'] ?>,
        }
    });
    myScrollList.init();
    document.getElementById('home_topic_wrapper')
        .addEventListener('touchmove', function (e) {
            e.preventDefault();
        }, false);
</script>